package com.dinian.zeus.mapper;

import com.dinian.zeus.domain.Periodical;
import com.dinian.zeus.domain.ResponseVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author dinian
 * @Date 2018-12-30
 */
public interface PeriodicalMapper {

    Periodical selectPeriodicalById(@Param("id") Integer id);

    List<Periodical> selectPeriodicals();

    List<ResponseVO> selectPeriodicalsByConditions(Periodical newspaper);

    int insertPeriodical(Periodical periodical);

    void updatePeriodical(Periodical periodical);

    void deletePeriodicalByIds(Integer[] ids);
}
